package com.xuxu.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @className: ClockEntity
 * @author: Maxuxu
 * @date: 2022/8/29 16:28
 * @description: 打卡实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("clock")
public class ClockEntity {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Integer id;
    @ApiModelProperty("打卡人")
    private String username;
    @ApiModelProperty("打卡时间")
    private Date time;
    @ApiModelProperty("打卡地点")
    private String location;
    @ApiModelProperty("打卡描述")
    private String comment;
}
